<?php

namespace app\libs\data;

abstract class Validator
{

    public static function __callStatic($model, $data = [])
    {
        $validator = new $model();
        $results = true;
        $log = [];

        foreach($data as $field => $value)
        {
            $result = $validator->{$field}($value);
        }
    }

}
